package dominio;

import java.util.ArrayList;

/**
 * Created by Rafael Simon Garcia on 12/7/13.
 */

public class SimulatedAnnealingFitnessCalculator {

    public static ArrayList<Integer> best;
    public static Integer bestScore;

    public static int Calculate(ArrayList<Integer> tour, ArrayList<? extends GraphElement> elements){
        int score = HillClimbFitnessCalculator.Calculate(tour, elements);
        if ((best == null) || (score > bestScore)){
            bestScore = score;
            best = tour;
        }
        return score;
    }

    public static void Reset(){
        best = null;
        bestScore = null;
    }
}
